package com.zcl.factory;


import com.zcl.pojo.Student;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
//通过静态工厂方法获取对象
public class StudentFactory {
    public static Student getInstance(){
        return new Student();
    }
    //普通工厂方法
    public Student getInstance2(){
        return new Student();
    }
}
